package com.woniu.humanresource.dao;

import com.woniu.humanresource.entity.Department;
import com.woniu.humanresource.entity.TrainingDemand;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TrainingDemandDao {
    // 添加培训需求
    void insertTrainingDemand(TrainingDemand demand);
    // 修改培训需求信息
    void updateTrainingDemand(TrainingDemand demand);
    // 删除需求
    void deleteTrainingDemand(int did);
    // 条件查询需求表以及分页
    List<TrainingDemand> selectTrainingDemandCondition(@Param("demand") TrainingDemand demand, @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);
    // 条件查询需求表的总条数
    int selectTrainingDemandConditionCount(@Param("demand") TrainingDemand demand);
    // 查询部门
    List<Department> selectDep();
}
